/**
 * @description 📚 路由参数配置简介
 * @param path ==> 路由菜单访问路径
 * @param name ==> 路由 name (对应页面组件 name)
 * @param component ==> 前端组件文件路径
 * @param meta ==> 路由菜单元信息
 * @param meta.icon ==> 菜单和面包屑对应的图标
 * @param meta.title ==> 路由标题 (用作 document.title || 菜单的名称)
 * @param meta.hidden ==> 是否在菜单中隐藏 (通常列表详情页需要隐藏)
 * @param meta.activeMenu ==> 激活左侧菜单位置（需写在二级路由后的嵌套路由每一个meta里，主要是为了页面处于嵌套路由中默认选中并高亮一级菜单）
 * @param meta.keepAlive ==> 当前路由是否缓存
 * @param redirect ==> 当点击面包屑目录时路由重定向地址（该属性需写在一级目录路由上）
 * @param breadHidden ==> 是否隐藏顶部面包屑（该属性需写在非目录路由的视图路由meta中）
 * @param tagHidden ==> 是否隐藏顶部标签导航（该属性需写在非目录路由的视图路由meta中）
 * */
export default [
    {
        "path": "/menu",
        "name": "menu",
        "redirect": "/menu/menu2",
        "meta": {
            "icon": "List",
            "title": "菜单嵌套示例",
            "hidden": true,
            "keepAlive": false
        },
        "children": [
            {
                "path": "/menu/menu2",
                "name": "menu2",
                "component": "/menu/menu2/index",
                "meta": {
                    "icon": "Menu",
                    "title": "菜单2",
                    "hidden": false,
                    "keepAlive": false
                },
                "children": [
                    {
                        "path": "/menu/menu2/menu21/:id",
                        "name": "menu21",
                        "component": "/menu/menu2/menu21/index",
                        "meta": {
                            "icon": "Menu",
                            "title": "菜单2-1",
                            "activeMenu": "/menu/menu2",
                            "hidden": true,
                            "keepAlive": false
                        },
                        "children": [
                            {
                                "path": "/menu/menu2/menu21/menu22/:id",
                                "name": "menu22",
                                "component": "/menu/menu2/menu21/menu22/index",
                                "meta": {
                                    "icon": "Menu",
                                    "title": "菜单2-2",
                                    "activeMenu": "/menu/menu2",
                                    "hidden": true,
                                    "keepAlive": false,
                                    "breadHidden": true,
                                    "tagHidden": true,
                                },
                                "children": [
                                    {
                                        "path": "/menu/menu2/menu21/menu22/menu23/:id",
                                        "name": "menu23",
                                        "component": "/menu/menu2/menu21/menu22/menu23/index",
                                        "meta": {
                                            "icon": "Menu",
                                            "title": "菜单2-3",
                                            "activeMenu": "/menu/menu2",
                                            "hidden": true,
                                            "keepAlive": false,
                                            "breadHidden": true,
                                            "tagHidden": true,
                                        }
                                    }
                                ]
                            }
                        ]
                    },
                ]
            }
        ]
    },
]
